package cn.caplike.demo.repository.design.pattern.observer;

/**
 * @author LiKe
 * @date 2019-08-13 08:49
 */
public class ConcreteWatcher implements Watcher {
    private final Object name;
    public ConcreteWatcher(Object name) { this.name = name; }

    @Override
    public void update(String str) {
        System.out.println("Watcher#" + name + ": " + str);
    }
}
